document.addEventListener('DOMContentLoaded', () => {
    const jsPath = 'js/inject.js';
    const jsBox = document.createElement('script');
    jsBox.setAttribute('type', 'text/javascript');
    jsBox.setAttribute('charset', "utf-8")
    jsBox.src = chrome.extension.getURL(jsPath);

    const cssPath = 'css/index.css';
    const cssBox = document.createElement('link');
    cssBox.rel = 'stylesheet';
    cssBox.type = 'text/css';
    cssBox.href = chrome.extension.getURL(cssPath);

    document.body.appendChild(jsBox);
    document.head.appendChild(cssBox);
});